package ooday02homework;

public class Student extends Person{
    String className;
    String stuId;

    Student() {

    }

    Student(String name,int age,String address,String className, String stuId) {
        super(name,age,address);
        this.className=className;
        this.stuId=stuId;
    }

    void study() {
        System.out.println(name+"在学习");
    }

    void sayHi() {
        System.out.println(name+"名字  "+age+"年龄    "
                +address+"地址"+className+"班级名字"+stuId+"学号");
    }
}
